<template>
	<view>
		<uni-popup ref="popup" type="bottom" :mask-click="false" :is-mask-click="false" border-radius="40rpx 40rpx 0 0">
			<view class="inner-box">
				<view class="title-box">
					<uni-icons class="icon-close" @tap="close" type="closeempty" size="30"></uni-icons>
					<view class="title">
						全部招聘职位
					</view>
				</view>
				<view class="tabs">
					<view class="tab-item tab-act">
						全部
					</view>
					<view class="tab-item">
						市场
					</view>
					<view class="tab-item">
						生产部
					</view>
				</view>
				<view class="company-box">
					<view class="position-item" @tap="reportPosition">
						<view class="top">
							<text class="title">招聘一线普工操作工 拷贝</text>
							<view class="tag">
								派遣
							</view>
							<view class="money">
								6-8k
							</view>
						</view>
						<view class="bot">
							<view class="bot-item-left">
								太原市 小店区 范岗镇
							</view>
							<view class="bot-item-tag">
								经验不限
							</view>
						</view>
					</view>
					<view class="position-item">
						<view class="top">
							<text class="title">招聘一线普工操作工 拷贝</text>
							<view class="tag2">
								代招
							</view>
							<view class="money">
								6-8k
							</view>
						</view>
						<view class="bot">
							<view class="bot-item-left">
								太原市 小店区 范岗镇
							</view>
							<view class="bot-item-tag">
								经验不限
							</view>
							<view class="bot-item-tag">
								学历不限
							</view>
						</view>
					</view>
				</view>
			</view>
		</uni-popup>
		<ReportPosition ref="ReportPositionRef"></ReportPosition>
	</view>
</template>

<script>
	import {
		mapState,
		mapGetters
	} from 'vuex';
	import ReportPosition from "./ReportPosition.vue"
	export default {
		components:{
			ReportPosition
		},
		data() {
			return {
				
			}
		},
		methods: {
			close() {
				this.$refs.popup.close();
			},
			open() {
				this.$refs.popup.open();
			},
			reportPosition() {
				this.$refs.ReportPositionRef.open();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.inner-box {
		background: #FFFFFF;
		padding: 0 39rpx;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
		overflow: hidden;

		.title-box {
			padding-top: 39rpx;
			display: flex;
			align-items: center;
			margin-bottom: 51rpx;

			.icon-close {}

			.title {
				margin-left: 172rpx;
				font-weight: 800;
				font-size: 40rpx;
				color: #111111;
			}
		}

		.company-box {
			height: 80vh;
			overflow-y: auto;

			.position-item {
				margin-bottom: 40rpx;

				.top {
					display: flex;
					align-items: center;

					.title {
						font-weight: bold;
						font-size: 32rpx;
						color: #333333;
						margin-right: 16rpx;
					}

					.tag {
						width: 58rpx;
						height: 30rpx;
						border-radius: 6rpx;
						border: 2px solid #159752;
						font-weight: bold;
						font-size: 20rpx;
						color: #159752;
						line-height: 36rpx;
						text-align: center;
						line-height: 32rpx;
					}

					.tag2 {
						width: 58rpx;
						height: 30rpx;
						border-radius: 6rpx;
						border: 2px solid #1E73FF;
						font-weight: bold;
						font-size: 20rpx;
						color: #1E73FF;
						line-height: 36rpx;
						text-align: center;
						line-height: 32rpx;
					}

					.money {
						font-weight: 800;
						font-size: 36rpx;
						color: #348FFF;
						margin-left: auto;
					}
				}

				.bot {
					margin-top: 30rpx;
					display: flex;
					align-items: center;

					.bot-item-left {
						font-weight: 500;
						font-size: 26rpx;
						color: #999999;
						margin-right: 30rpx;
					}

					.bot-item-tag {
						padding: 9rpx 15rpx;
						background: #F3F5FA;
						border-radius: 10rpx;
						font-weight: 500;
						font-size: 24rpx;
						color: #888888;
						margin-right: 20rpx;
					}
				}
			}

		}

		.tabs {
			display: flex;
			margin-bottom: 43rpx;

			.tab-item {
				padding: 16rpx 28rpx;
				border-radius: 28rpx;
				background-color: #FFFFFF;
				font-weight: 500;
				font-size: 28rpx;
				color: #888888;
				margin-right: 40rpx;
			}

			.tab-act {
				background: #3A92FF;
				font-weight: bold;
				font-size: 28rpx;
				color: #FFFFFF;
			}
		}

	}
</style>